import { ApiProperty } from '@nestjs/swagger';

export class PaginatedDto<TData> {
  total: number;

  limit?: number;

  offset?: number;

  // @ApiProperty 调用覆盖重置配置，避免AST解析循环依赖问题
  @ApiProperty({ isArray: true, type: () => Object })
  data: TData[];
}
